package com.zyb.warehouse.service.impl;

import com.zyb.warehouse.entity.User;
import com.zyb.warehouse.mapper.LoginMapper;
import com.zyb.warehouse.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:用户登录业务逻辑实现
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;

    /**
     * 根据用户账号查询用户
     *
     * @param userCode
     * @return
     */
    public User queryUserByCode(String userCode) {
        return loginMapper.selectUserByCode(userCode);
    }
}
